<template>
	<div class="page-header col-xs-offset-2 col-xs-8">
		<h2>Vue路由测试</h2>
		<button @click="test1">后退←</button>
		<button @click="test2">前进→</button>
		<button @click="test3">测试一下go方法</button>
	</div>
</template>

<script>
	export default {
		name:'Header',
		methods:{
			test1(){
				this.$router.back()
			},
			test2(){
				this.$router.forward()
			},
			test3(){
				this.$router.go(-3) //正数代表前进几步，负数代表后退几步
			},
		}
	}
</script>